package com.alex.dao;

import com.alex.pojo.Book;
import com.alex.pojo.BookStock;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookStockMapper {

    int add(BookStock bookStock);

    int delete(String isbn);

    int update(BookStock bookStock);

    BookStock get(String isbn);

    List<BookStock> getAll();

    int updateStock(@Param("isbn") String isbn, @Param("stock") Integer stock);
}
